<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$html_page_title}</title>

{foreach from=$include_js item=js_file}
	<script type="text/javascript" src="{$psa_result->basedir_web}/{$js_file}"></script>
{/foreach}

{foreach from=$include_css item=css_file}
	<link href="{$psa_result->basedir_web}/{$css_file}" rel="stylesheet" media="screen" type="text/css" />
{/foreach}

<script type="text/javascript">
{foreach from=$js_code item=js_source}
	{$js_source}
{/foreach}
</script>

</head>

<body {if $header_fixed}class="navbar-fixed" {/if}>
	{$content_main}
	
	
<script type="text/javascript">
	$(function() {
	
		
		$('#tasks').sortable();
		$('#tasks').disableSelection();
		$('#tasks input:checkbox').removeAttr('checked').on('click', function(){
			if(this.checked) $(this).closest('li').addClass('selected');
			else $(this).closest('li').removeClass('selected');
		});
	
		var oldie = $.browser.msie && $.browser.version < 9;
		$('.easy-pie-chart.percentage').each(function(){
			var $box = $(this).closest('.infobox');
			var barColor = $(this).data('color') || (!$box.hasClass('infobox-dark') ? $box.css('color') : 'rgba(255,255,255,0.95)');
			var trackColor = barColor == 'rgba(255,255,255,0.95)' ? 'rgba(255,255,255,0.25)' : '#E2E2E2';
			var size = parseInt($(this).data('size')) || 50;
			$(this).easyPieChart({
				barColor: barColor,
				trackColor: trackColor,
				scaleColor: false,
				lineCap: 'butt',
				lineWidth: parseInt(size/10),
				animate: oldie ? false : 1000,
				size: size
			});
		})
	});
</script>
</body>
</html>
